moduleResource.factory("ExerciseContentResource", function (CambioResource, $$CambioConfig) {

    const resource = $$CambioConfig.SZ_MANAGEMENT_SYSTEM_RESOURCE_URL + "/exercise/content";
    return CambioResource(resource, {}, {
        findByKey: {
            url: resource + "/findByKey",
            method: 'POST'
        },
        findPaginationListByKey: {
            url: resource + "/findByKey" + $$CambioConfig.QUERY_URI,
            method: 'POST'
        },
        query: {
            url: resource + "/query/:direction" + $$CambioConfig.QUERY_URI,
            method: 'POST'
        },
        findById: {
            url: resource + "/findById/:id",
            method: 'GET'
        },
        saveDynamicHtml: {
            url: resource + "/save/dynamicHtml",
            method: 'POST'
        },
        updateDynamicHtml: {
            url: resource + "/update/dynamicHtml",
            method: 'PUT'
        },
        saveAudio: {
            url: resource + "/save/audio",
            method: 'POST'
        },
        updateAudio: {
            url: resource + "/update/audio",
            method: 'PUT'
        },
        saveArticle: {
            url: resource + "/save/article",
            method: 'POST'
        },
        updateArticle: {
            url: resource + "/update/article",
            method: 'PUT'
        },
        saveQuiz: {
            url: resource + "/save/quiz",
            method: 'POST'
        },
        updateQuiz: {
            url: resource + "/update/quiz",
            method: 'PUT'
        },
        saveTask: {
            url: resource + "/save/task",
            method: 'POST'
        },
        updateTask: {
            url: resource + "/update/task",
            method: 'PUT'
        },
        saveFolder: {
            url: resource + "/save/folder",
            method: 'POST'
        },
        updateFolder: {
            url: resource + "/update/folder",
            method: 'PUT'
        },
        move: {
            url: resource + "/move/:targetContentId",
            method: 'POST'
        }
    });
});